#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <string.h>

int main()
{
	char arr[] = "ljie@yeah.net";
	char copy[30];
	strcpy(copy, arr);

	char sep[] = "@.#";
	char* ret = strtok(copy, sep);
	printf("%s\n", ret);

	ret = strtok(NULL, sep);
	printf("%s\n", ret);

	ret = strtok(NULL, sep);
	printf("%s\n", ret);
	return 0;
}

int main()
{
	char arr[] = "ljie@yeah.net#666#777";
	char copy[30];
	strcpy(copy, arr);

	char sep[] = "@.#";
	char* ret = NULL;

	for (ret = strtok(copy, sep); ret != 0; ret = strtok(NULL, sep))
	{
		printf("%s\n", ret);
	}
	return 0;
}
